reftests: Add a simple reftest for background-position
authorBenjamin Otte <otte@redhat.com>
Wed, 30 May 2012 15:33:27 +0000 (11:33 -0400)
committerCosimo Cecchi <cosimoc@gnome.org>
Wed, 30 May 2012 16:16:11 +0000 (12:16 -0400)
This is mostly to ensure that the background-positioning feature keeps
working and to demonstrate it.

https://bugzilla.gnome.org/show_bug.cgi?id=677109

tests/reftests/Makefile.am
tests/reftests/background-position-simple.css [new file with mode: 0644]
tests/reftests/background-position-simple.ref.ui [new file with mode: 0644]
tests/reftests/background-position-simple.ui [new file with mode: 0644]

index 30eb1d09ef759852089a5f60e2a9837ecbdd70b6..59e9e294c79c36f0bc79458c1ee8514bffa0af39 100644 (file)
@@ -43,6 +43,9 @@ EXTRA_DIST += \
        background-position.css \
        background-position.ref.ui \
        background-position.ui \
+       background-position-simple.css \
+       background-position-simple.ref.ui \
+       background-position-simple.ui \
        background-size.css \
        background-size.ref.ui \
        background-size.ui \
diff --git a/tests/reftests/background-position-simple.css b/tests/reftests/background-position-simple.css
new file mode 100644 (file)
index 0000000..f3a020c
--- /dev/null
@@ -0,0 +1,13 @@
+@import url("reset-to-defaults.css");
+
+* {
+  background-image: linear-gradient(red, blue, red);
+  background-size: 20px 20px;
+  background-position: 50%;
+}
+
+#reference {
+  background-image: linear-gradient(blue, red, blue, red, blue);
+  background-size: initial;
+  background-position: initial;
+}
diff --git a/tests/reftests/background-position-simple.ref.ui b/tests/reftests/background-position-simple.ref.ui
new file mode 100644 (file)
index 0000000..a3367df
--- /dev/null
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.0 -->
+  <object class="GtkWindow" id="window1">
+    <property name="name">reference</property>
+    <property name="width_request">40</property>
+    <property name="height_request">40</property>
+    <property name="can_focus">False</property>
+    <property name="type">popup</property>
+    <child>
+      <placeholder/>
+    </child>
+  </object>
+</interface>
diff --git a/tests/reftests/background-position-simple.ui b/tests/reftests/background-position-simple.ui
new file mode 100644 (file)
index 0000000..27849e1
--- /dev/null
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.0 -->
+  <object class="GtkWindow" id="window1">
+    <property name="width_request">40</property>
+    <property name="height_request">40</property>
+    <property name="can_focus">False</property>
+    <property name="type">popup</property>
+    <child>
+      <placeholder/>
+    </child>
+  </object>
+</interface>